package com.aier.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Country entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "country", catalog = "abc")
public class Country implements java.io.Serializable {

    // Fields

    private Long ctid;
    private String name_cn;
    private String name_en;
    private String code;
    private String image;

    /** default constructor */
    public Country() {
    }

    /** minimal constructor */
    public Country(Long ctid) {
        this.ctid = ctid;
    }

    /** full constructor */
    public Country(Long ctid, String name_cn, String name_en,String code,String image) {
        this.ctid = ctid;
        this.name_cn = name_cn;
        this.name_en = name_en;
        this.code = code;
        this.image = image;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ctid", unique = true, nullable = false)
    public Long getCtid() {
        return ctid;
    }

    public void setCtid(Long ctid) {
        this.ctid = ctid;
    }
    @Column(name = "name_cn")
    public String getName_cn() {
        return name_cn;
    }

    public void setName_cn(String name_cn) {
        this.name_cn = name_cn;
    }

    @Column(name = "name_en")
    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "image")
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

}